CC:=gcc

create: 01_create.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

terminate: 02_terminate.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

cancel: 03_cancel.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

race_condition: 04_race_condition.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

mutex_lock: 04_mutex_lock.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

p_c_lock: 05_p_c_lock.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

condition_var: 05_condition_var.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@


thread_sync: 06_thread_sync.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

sem_count: 06_sem_count.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@